package com.cskaoyan.mall.bean.vo;

import lombok.Data;

import java.util.List;

/**
 * @name zhangguannan
 * @Date 2021-01-11 10:04
 */
@Data
public class OrderGoodsStatVO {

    private List<String> columns;
    private List<RowsBean> rows;

    public static OrderGoodsStatVO data( List<String> columns,List<RowsBean> rows){
        OrderGoodsStatVO orderGoodsStatVO = new OrderGoodsStatVO();
        orderGoodsStatVO.setRows(rows);
        orderGoodsStatVO.setColumns(columns);
        return orderGoodsStatVO;
    }


    @Data
    public static class RowsBean {
        /**
         * amount : 10319.0
         * orders : 20
         * day : 2020-04-27
         * products : 20
         */

        private double amount;
        private int orders;
        private String day;
        private int products;


    }
}
